#include <ctype.h>
#include <stdio.h>
#include <string.h>

int code(char c)
{
    if (c >= 'a' && c <= 'c')
        return 2;
    else if (c >= 'd' && c <= 'e')
        return 3;
    else if (c >= 'g' && c <= 'i')
        return 4;
    else if (c >= 'j' && c <= 'l')
        return 5;
    else if (c >= 'm' && c <= 'o')
        return 6;
    else if (c >= 'p' && c <= 's')
        return 7;
    else if (c >= 't' && c <= 'v')
        return 8;
    else if (c >= 'w' && c <= 'z')
        return 9;
    else
        return 3;
}

int main(int argc, char *argv[])
{

    char str[1024];
    while (scanf("%s[^\n]", str) != EOF)
    {
        int len = strlen(str);
        for (size_t i = 0; i < len; i++)
        {
            if (islower(str[i]))
            {
                printf("%d", code(str[i]));
            }
            else if (isupper(str[i]))
            {
                int c = str[i];
                c = tolower(c);
                if (c == 'z')
                    c = 'a';
                else
                    c += 1;
                c = (char)c;
                printf("%c", c);
            }
            else if (isdigit(str[i]))
            {
                printf("%c", str[i]);
            }
            else
            {
                printf("%c", str[i]);
            }
        }
        printf("\n");
        memset(str, 0, 1024);
    }
    return 0;
}